import axios from '@/axios'

export const getNoticeListAPI = (page) => {
  return axios.get(`/admin/notice/${page}`)
}

// 增加公告
export const addNoticeListAPi = (data) => {
  return axios.post('/admin/notice', data)
}

// 修改公告
export const updateNoticeListAPI = (id, data) => {
  return axios.post(`/admin/notice/${id}`, data)
}

// 删除公告
export const deleteNoticeListAPI = (id) => {
  return axios.post(`/admin/notice/${id}/delete`)
}
